package com.ruoyi.index.service.impl;

import com.ruoyi.index.domain.PostcommentsLike;
import com.ruoyi.index.mapper.IndexPostcommentsLikeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 点赞评论 Service业务层处理
 */
@Service
public class IndexPostcommentsLikeService
{
    @Autowired
    private IndexPostcommentsLikeMapper indexPostcommentsLikeMapper;

    //点赞评论
    public int likePostcomments(PostcommentsLike postcommentsLike) {
        return indexPostcommentsLikeMapper.likePostcomments(postcommentsLike);
    }

    //取消点赞评论
    public int unlikePostcomments(PostcommentsLike postcommentsLike) {
        return indexPostcommentsLikeMapper.unlikePostcomments(postcommentsLike);
    }

    //查询点赞状态
    public PostcommentsLike getLikeStatus(PostcommentsLike postcommentsLike) {
        return indexPostcommentsLikeMapper.getLikeStatus(postcommentsLike);
    }

}
